package us.codecraft.webmagic.model;

import java.io.IOException;
import java.net.MalformedURLException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.script.ScriptException;

import us.codecraft.webmagic.Page;
import us.codecraft.webmagic.Request;
import us.codecraft.webmagic.Site;
import us.codecraft.webmagic.model.annotation.ExtractBy;
import us.codecraft.webmagic.model.annotation.TargetUrl;
import us.codecraft.webmagic.selector.Type;

/**
 * @author code4crafter@gmail.com <br>
 * @since 0.3.2
 */
@TargetUrl("http://api.mayiyiyi.com/v1/cate/getcate*")
@ExtractBy(value = "router('def process(obj){\nreturn us.codecraft.webmagic.model.AntStore.decrypt(obj);\n}').json('$..items[*]')", type = Type.mixe, multi = true, source = Source.RawText)
public class AntMenus implements AfterExtractor {

    @ExtractBy(value = "$.id", type = Type.json, notNull = true)
    private String id;

    @ExtractBy(value = "$.title", type = Type.json)
    private String name;

    @ExtractBy(value = "$.icon", type = Type.json)
    private String icon;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public static void main(String[] args) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException,
            InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, IOException,
            NoSuchMethodException, ScriptException {
        OOSpider.create(Site.me().setSleepTime(100), new AntPageModelPipeline(), AntMenus.class, AntItems.class,
                AntDetail.class).addUrl(AntStore.getCate()).thread(20).start();

        /*
         * String body =
         * "b4AXWjNPiP9eOUU4doO9lwsPWAApIrBhXiJWauD5fOalV44DI3DyfpLlri50TG+Dy5/PLbPDVUGoHOu9Th4c0jsROS5iO/M4ewVekR34/8XIkmiPDQWhh2UogC8q/og4X083cCs0emK8wrQJzpX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WFNEU98IaGubaoKvy3ajTD+CAz+4l5XdjAQRoYZDXPrX7kJjDeJWCM4vEwDFS4ORAwj9ZojGuo2kiQxbrA8N+cTkt3RSMdeGi0cCi5KP5gpw5Gg94ffojw2o2TBZPB26EQ5ufI+xg56A4bn9BCNyOPydY/aF4HxZSHmbkJEqo8hFJv6eusnx8MFOMyAbNfPnvM+FfI622mYmjadcqCqJ3fGYG1Y58U=";
         * 
         * List<String> aa = Selectors .mixe(
         * "router('def process(obj){\nreturn us.codecraft.webmagic.model.AntStore.getInstance().decrypt(obj);\n}').json('$..items[*]')"
         * ) .selectList(body); System.out.println(aa);
         */

    }

    @Override
    public void afterProcess(Page page) {
        try {
            Request req = new Request(AntStore.getCatecon(this.id, "1"));
            req.putExtra("flag", true);
            req.putExtra("name", name);
            page.addTargetRequest(req);
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }
    }

}
